<%--
    Document   : welcome
    Created on : Nov 17, 2012, 14:21:37 PM
    Author     : HoangTN
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/xml" prefix="x"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

<html>
<head>
<title>Employee approve</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

<link href="<%=request.getContextPath()%>/styles/layout.css"
	rel="stylesheet" type="text/css" media="screen" />
<script src="<%=request.getContextPath()%>/js/dateUtil.js"></script>
<script src="<%=request.getContextPath()%>/js/tableUtil.js"></script>
<script src="<%=request.getContextPath()%>/js/log/log02010.js"></script>
<body id="top">

	<c:if test="${empty sessionScope.USER}">
		<%
			response.sendRedirect(request.getContextPath() + "/index.jsp");
		%>
	</c:if>

	<div class="wrapper col1">
		<div id="header">
			<div id="logo">
				<h1>
                        <a href="<%=request.getContextPath()%>/welcome.jsp">BusinessToday</a>
				</h1>
				<p>
					<strong>Free CSS Website Template</strong>
				</p>
			</div>
			<div id="newsletter">
				<p>
					<i>Welcome, ${sessionScope.ROLE} <font color="red" size="4">
							<strong> ${sessionScope.USER}</strong>
					</font></i>
				</p>
				<p align="right">
					<a href="<%=request.getContextPath()%>/LogoutController">Log
						out</a>
				</p>
			</div>
			<br class="clear" />
		</div>
	</div>

	
        <%@include file="/jsp/common/menu_timesheet_field.jsp" %>


        <div class="wrapper col5" style="height: 50%;">
		<div id="container">

			<!---->
			<input type="hidden" id="pFromYear" value="${param.fromYear}">
			<input type="hidden" id="pFromMonth" value="${param.fromMonth}">
			<input type="hidden" id="pFromDay" value="${param.fromDay}">
			<input type="hidden" id="pToYear" value="${param.toYear}">
			<input type="hidden" id="pToMonth" value="${param.toMonth}">
			<input type="hidden" id="pToDay" value="${param.toDay}">
			<input type="hidden" id="pProId" value="${param.proId}">
			<input type="hidden" id="pEmpId" value="${param.empId}">
			<input type="hidden" id="pStatus" value="${param.status}">
			<div>
				<form id="form" action="approve" method="post">
					<h1>Approve Timesheet</h1>
					<div>
						<div>
							<div>
								<table style="border: 0px none;">
									<tr>
										<th style="width: 100px;">From date</th>
										<td><select id="fromYear" name="fromYear"></select>- <select
											id="fromMonth" name="fromMonth"></select>- <select
											id="fromDay" name="fromDay"></select></td>
									</tr>
									<tr>
										<th>To date</th>
										<td><select id="toYear" name="toYear"></select>- <select
											id="toMonth" name="toMonth"></select>- <select id="toDay"
											name="toDay"></select></td>
									</tr>
									<tr>
										<th>Project</th>
										<td><select id="proId" name="proId">
										</select></td>
									</tr>
									<tr>
										<th>Employee</th>
										<td><select id="empId" name="empId">
										</select></td>
									</tr>
									<tr>
										<th>Status</th>
										<td><select id="status" name="status">
												<option value="">All</option>
												<option value="approved">Approved</option>
												<option value="unapproved">Unapproved</option>
												<option value="rejected">Rejected</option>
										</select></td>
									</tr>
								</table>
							</div>
							<div>
								<input type="hidden" name="search" value="true" /><input
									type="submit" name="action" id="btnSearch" value="Search" />
							</div>
						</div>
						<div>
							<table border="1" cellpadding="3" id="actList">
								<tr>
									<th style="width: 20px;"></th>
									<th>Date</th>
									<th>Description</th>
									<th>Employee</th>
									<th>Project</th>
									<th>Duration</th>
									<th>Status</th>
								</tr>
							</table>
							<input type="submit" name="action" id="btnApprove"
								value="Approve" /> <input type="submit" name="action"
								id="btnReject" value="Reject" />
						</div>
					</div>
				</form>
			</div>

			<!---->

			<br class="clear" />
		</div>
	</div>

	<%@include file="/jsp/common/footer_field.jsp"%>
	<%@include file="/jsp/common/copyright_field.jsp"%>
</body>
</html>
